package pinyinJava;

import pinyinJava.executors.HbExecutor;
import pinyinJava.executors.PyExecutor;
import pinyinJava.executors.PyJson2DbExecutor;
import pinyinJava.executors.ZyAddIdExecutor;
import pinyinJava.utils.ProxyUtil;

import java.io.IOException;
import java.sql.SQLException;

public class Main {

    private static final String baseUrl = "http://xh.5156edu.com/";

    public static void main(String[] args) {
        ProxyUtil.init();
//        try {
//            new PyExecutor(baseUrl).getPy();
//        } catch (IOException e) {
//            System.out.println("Jsoup Err:" + e == null ? "" : e.toString());
//        }
//        try {
//            new PyJson2DbExecutor().json2Db();
//        } catch (SQLException e) {
//            e.printStackTrace();
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
//        try {
//            new ZyAddIdExecutor().execute();
//        } catch (SQLException e) {
//            e.printStackTrace();
//        }
        try {
            new HbExecutor().execute();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
